home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Producer's Bible / Multimedia Producer's Bible.iso / mac / Debabelizer / LiteLE / DeBabelizer Lite® LEdl01.sea / DeBabelizer LiteÆ LEdl01 Folder / DeBabelizer LiteÆ 1.1.3LEdl01.rsrc / TEXT_212_Raw RGB.txt < prev    next >
Encoding:
Text File  |  1996-02-02  |  980 b   |  27 lines

  1. Raw RGB
  2. This is the simplest possible format for storing RGB (also called ‚Äúdirect color‚Äù) type pictures (where the red, green, and blue values are stored for each pixel).  
  3.  
  4. It contains the picture width, height and the uncompressed image.
  5.  
  6. Input & Output:  256, 32768, 17 million colors, or 17 million colors + alpha channel.
  7.     
  8. Default Extension:  RGB
  9.  
  10. Technical Details
  11. The first 8 bytes are Ascii for ‚ÄúRAW RGB ‚Äú [hex 52 41 57 20 52 47 42 20].
  12.  
  13. 2 Motorola bytes for the width in pixels [for example decimal width 320:  hex 01 40].
  14.  
  15. 2 Motorola bytes for the height in pixels. 
  16.  
  17. The uncompressed image, in one of 3 forms. The form may be determined by dividing the total file size by the width * height:
  18.  
  19. 4 bytes/pixel: 1 byte alpha channel, 1 byte red, 1 byte green, 1 byte blue
  20.  
  21. - or - 
  22.  
  23. 3 bytes/pixel: 1 byte red, 1 byte green, and 1 byte blue
  24.  
  25. - or -
  26.  
  27. 2 bytes/pixel: 1 junk bit, 5 bits red, 5 bits green, 5 bits blue, reading from left to right or high bit to low bit.